package com.luxk.db.lock;

public enum LockMode {
	INVALID(-1, "Invalid"),
	NULL(0, "Null"),
	CR(1, "Concurrent Read"),
	CW(2, "Concurrent Write"),
	PR(3, "Protected Read"),
	PW(4, "Protected Write"),
	EX(5, "Exclusive");
	private final int id;
	private final String desc;
	LockMode(int id, String desc) { this.id = id; this.desc = desc; }
	public int getId() { return this.id; }
	public String getDesc() { return this.desc; }
	
}